﻿<Window x:Class="_5.NationalFlags.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525">
    <Canvas>
        <Image Source="/5.NationalFlags;component/bg_flag_wave.jpg" x:Name="FlagBG">
            <Image.Triggers>
                <EventTrigger RoutedEvent="Image.Loaded">
                    <BeginStoryboard>
                        <Storyboard>
                            <DoubleAnimation
                                Storyboard.TargetName="FlagBG"
                                Storyboard.TargetProperty="Opacity"
                                From="1" To="0" Duration="00:01:0.0"
                                AutoReverse="True" RepeatBehavior="Forever" />
                        </Storyboard>
                    </BeginStoryboard>
                </EventTrigger>
            </Image.Triggers>
        </Image>
        <Image Source="/5.NationalFlags;component/flag_EN.gif" x:Name="FlagEN"
               Height="200" Canvas.Top="0" Width="299" Canvas.Left="0">
            <Image.Triggers>
                <EventTrigger RoutedEvent="Image.Loaded">
                    <BeginStoryboard>
                        <Storyboard>
                            <DoubleAnimation
                                Storyboard.TargetName="FlagEN"
                                Storyboard.TargetProperty="Opacity"
                                From="0" To="1" Duration="00:00:0.97"
                                AutoReverse="True" RepeatBehavior="Forever" />
                        </Storyboard>
                    </BeginStoryboard>
                </EventTrigger>
            </Image.Triggers>
        </Image>
    </Canvas>
</Window>
